<?php session_start(); ?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>SIADCOS</title>
    <link href="css/bootstrap.min.css" rel="stylesheet" type='text/css'>
    <link href="css/estilo.css" rel="stylesheet" type='text/css'>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src='js/main.js'></script>
    <script src='js/scrollMonitor.js'></script>
  </head>
  <body>
    <header>
        <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
              <div class="container-fluid">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                      <span class="sr-only">Menu</span>
                      <span class="icon-bar"></span>
                      <span class="icon-bar"></span>
                      <span class="icon-bar"></span>
                    </button>
                  <a class="navbar-brand" href="/">SIADCOS</a>
                </div>
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                  <ul class="nav navbar-nav">
                    <li id='mnu_Inicio'><a href="/">Inicio</a></li>
                    <li id='mnu_Productos'><a href="panel.php">Productos</a></li>
                    <li id='mnu_Ingredientes'><a href="panel.php">Ingredientes</a></li>
                    <li id='mnu_Usuarios'><a href="login.php">Usuarios</a></li>
                  </ul>

                  <ul class="nav navbar-nav navbar-right">
                    <?php if (isset($_SESSION['User'])) { ?>
                            <li class="dropdown">
                              <a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php echo $_SESSION['Nombre']?> <b class="caret"></b></a>
                              <ul class="dropdown-menu">
                                <li><a href="perfil.php">Perfil</a></li>
                                <li class="divider"></li>
                                <li><a href="logout.php">Cerrar sesión...</a></li>
                              </ul>
                            </li>
                    <?php } else { ?>
                            <li><a href="registrar.php">Registrar...</a></li>
                            <li><a href="login.php">Iniciar sesión...</a></li>
                    <?php } ?>
                  </ul>
                </div>
              </div>
            </nav>
    </header>

	

